<template>
    <div class="box">
        <van-search v-model="value" placeholder="请输入搜索关键词" @click="toSearch" />
    </div>
</template>

<script setup>
import router from '@/router';


const toSearch = () => {
    router.push("/search")
}

</script>

<style lang="scss" scoped>
.box {
    width: 100%;
    height: 100%;
}
</style>